<template>
  <div id="app">
    <div id="nav">
      <router-link to="/" class="nav">Home</router-link> |
      <router-link to="/about" class="nav">About</router-link>
    </div>
    <transition name="fade">
      <keep-alive>
        <router-view v-if="$route.meta.keepAlive"></router-view>
      </keep-alive>
    </transition>
    <transition name="fade">
      <router-view v-if="!$route.meta.keepAlive"></router-view>
    </transition>
  </div>
</template>

<style>
#app {
}
.nav {
  font-size: 1.5rem;
}
</style>
